package org.wxd.account.domain.user;

import java.util.Optional;

/**
 * Created by wangxd on 2015/10/30.
 */
public interface UserOperations {

    /**
     * @param id
     * @return
     */
    Optional<User> ofId(String id);

    /**
     * @param email
     * @return
     */
    Optional<User> ofEmail(String email);
    /**
     * @param user
     */
    void store(User user);

    /**
     * @param user
     */
    void remove(User user);

}
